<?php

/**
* @current cmsadmin.php
* @author   caoqicheng <caoqicheng@haibao.com>
* @date 2017年2月22日 上午9:41:03
*/
namespace haibao\jiepai\model\data\user;

class CmsAdmin extends \haibao\jiepai\model\data\Base{
	
	/**
	 * 删除时置为-1，默认是0
	 * 是否是删除
	 */
	const FLAG_IS = 0;
	const FLAG_DEL = -1;
	
    
    public $Role;
    
    public $Name;
    
    public $Email;

    public $NickName;
    
    public $Pwd;
    
    public $CreateTime;
    
    public $Type;
    
    public $Flag;
    
    public function __construct(){
        parent::__construct();
        $this->setColumnName('Id', 'AdminID');
        
        
        $this->stringField('Role', 'Role');
        $this->stringField('Name', 'Name');
        $this->stringField('Email', 'Email',true);
        $this->stringField('NickName', 'NickName');
        $this->stringField('Pwd', 'Pwd');
        $this->dateField('CreateTime', 'CreateTime');
        $this->intField('Type', 'Type');        
        $this->intField('Flag', 'Flag');
      
        $this->setTableName('cms_admin');
    }
}

